﻿<%@ Page Title="Manage Category" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeFile="ManageCategory.aspx.cs" Inherits="admin_ManageCategory" %>

<asp:Content ID="Head" ContentPlaceHolderID="head" runat="Server">
    <link href="../styles/admin.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
     <div id="top_menu">
        <div id="help_button">
            help
        </div>
                  <div id="logout">
            <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutPageUrl="../Default.aspx"
                OnLoggingOut="LoginStatus1_LoggingOut" />
        </div>
    </div>
    <div id="page_title">
        ADMINISTRATION
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div id="left_content">
        <div class="menu">
            <ul>
                <li><a href="Home.aspx">Home</a></li>
                <li><a href="Mng_Client.aspx">Manage Clients</a></li>
                <li><a href="Mng_Site.aspx">Manage Sites</a></li>
                <li><a href="#" class="current">View Machine Details</a></li>
                <li><a href="Mng_Comp.aspx">Manage Components</a></li>
                <li><a href="Mng_Report.aspx">Manage Reports</a></li>
                <li><a href="Mng_WO.aspx">Manage Work Order</a></li>
                <li><a href="Mng_FaultsRecom.aspx">Manage Faults Recommendation</a></li>
            </ul>
        </div>
    </div>
    <!-- end of left content -->
    <div id="right_content">
        <div class="content_area">
            <h2>
                <asp:Label ID="lblTitle" runat="server">Manage Component Types</asp:Label>
            </h2>
            <div class="form_box1">
                <%--<asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager2" runat="server"></asp:ScriptManager>--%>
                <table id="selectedtable" runat="server">
                    <tr>
                        <td class="label">
                            Select Category
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownClientList" AutoPostBack="true" runat="server" OnSelectedIndexChanged="Component_Changed"
                                DataTextField="ComponentName" DataValueField="ComponentId" 
                                CssClass="dropDownList1">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
                </div>
                 <div class="form_box1">
                <asp:UpdatePanel ID="upnl" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="TaskGridView" runat="server" AutoGenerateEditButton="True" AutoGenerateDeleteButton="True"
                            OnRowEditing="TaskGridView_RowEditing" OnRowCancelingEdit="TaskGridView_RowCancelingEdit"
                            OnRowUpdating="TaskGridView_RowUpdating" OnRowDeleting="TaskGridView_RowDeleting"
                            OnRowDataBound="TaskGridView_RowDataBound" Style="text-align: center" HorizontalAlign="Justify"
                            AutoGenerateColumns="False">
                            <Columns>
                                <asp:TemplateField HeaderText="Attributes" SortExpression="Attributes">
                                    <ItemTemplate>
                                        <asp:TextBox ID="TextBox1" ForeColor="SeaGreen" Font-Bold="true" Width="250px" runat="server"
                                            BorderStyle="None">
                                        </asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="DropDownClientList" runat="server" />
                    </Triggers>
                </asp:UpdatePanel>
                </div>
                <div class="form_box2">
                <table>
                    <tr>
                        <td class="label">
                            <asp:Label ID="Label1" runat="server" Text="Attribute:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtAttribute" runat="server" CssClass="fields"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="label">
                            <asp:Label ID="Label2" runat="server" Text="Value:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtValue" runat="server" CssClass="fields"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="Get_Button" runat="server" Text="Add Attribute" OnClick="AddAttribute"
                                CssClass="buttons" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="save" runat="server" Text="Submit Edit" OnClick="Button1_Click" CssClass="buttons" />
                        </td>
                    </tr>
                </table>
                </div>
            </div>
        </div>
        <div id="back">
            <asp:LinkButton ID="BackButton" runat="server" PostBackUrl="Mng_Machine.aspx">Back</asp:LinkButton>
        </div>
        <!-- end of right content -->
   
</asp:Content>
